﻿using SqlSugar;

namespace HiSportApplet.Core.Entity.Bas
{ /// <summary>
  /// 场地
  /// </summary>
    [SugarTable(null, "场地")]

    public class BasSite : EntityBase
    {
        /// <summary>
        /// 租户Id
        /// </summary>
        [SugarColumn(ColumnDescription = "租户Id", DefaultValue = "0", IsNullable = false)]
        public  long? TenantId { get; set; }

        /// <summary>
        /// 机构ID
        /// </summary>
        [SugarColumn(ColumnDescription = "机构ID", DefaultValue = "0", IsNullable = false)]
        public long OrgId { get; set; }

        /// <summary>
        /// 场地编码
        /// </summary>
        [SugarColumn(ColumnDescription = "场地编码", Length = 50, DefaultValue = "", IsNullable = false)]
        public string SiteCode { get; set; }


        /// <summary>
        /// 场地名称
        /// </summary>
        [SugarColumn(ColumnDescription = "场地名称", Length = 50, DefaultValue = "", IsNullable = false)]
        public string SiteName { get; set; }


        /// <summary>
        ///  场地类型
        /// </summary>
        [SugarColumn(ColumnDescription = "场地类型", DefaultValue = "0", IsNullable = false)]
        public long SiteTypeId { get; set; }


        /// <summary>
        /// 场馆ID
        /// </summary>
        [SugarColumn(ColumnDescription = "场馆ID", DefaultValue = "0", IsNullable = false)]
        public long VenuesId { get; set; }


        /// <summary>
        /// 是否开启在线预订
        /// </summary>
        [SugarColumn(ColumnDescription = "是否开启在线预订", DefaultValue = "0", IsNullable = false)]
        public bool EnableOnlineOrder { get; set; }

        /// <summary>
        /// 显示顺序
        /// </summary>
        [SugarColumn(ColumnDescription = "显示顺序", DefaultValue = "0", IsNullable = false)]
        public int Seq { get; set; }

        /// <summary>
        /// 状态（0-停用；1-启用）
        /// </summary>
        public short Status { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDescription = "备注", Length = 200, DefaultValue = "", IsNullable = false)]
        public string Remark { get; set; }



        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnDescription = "创建时间", DefaultValue = "3000-12-31 00:00:00", IsNullable = false)]
        public override DateTime? CreateTime { get; set; }

        /// <summary>
        /// 创建者Id
        /// </summary>
        [SugarColumn(ColumnDescription = "创建者Id", DefaultValue = "0", IsNullable = false)]
        public override long? CreateUserId { get; set; }


        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnDescription = "更新时间", DefaultValue = "3000-12-31 00:00:00", IsNullable = false)]
        public override DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 修改者Id
        /// </summary>
        [SugarColumn(ColumnDescription = "修改者Id", DefaultValue = "0", IsNullable = false)]
        public override long? UpdateUserId { get; set; }
    }
}